package org.java.demo;


import javax.xml.crypto.Data;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class Demo {
    public static void main(String[] args) throws InterruptedException, ParseException {
        Date date = new Date();
        Thread.sleep(1000);
        Date date1 = new Date();

        String dao = "860000000";

        String[] nui =  new String[] {"-1","5","0"};

        Date date2 = new Date("9999/12/31");
        System.out.println(date2);


        DateFormat simpleDateFormat = new SimpleDateFormat("yyyy/MM/dd");

        Date parse = simpleDateFormat.parse("9999/12/31");
        System.out.println(parse);
        System.out.println(nui.length);

        System.out.println(dao.length());
        System.out.println(date1.getTime()- date.getTime());



    }
}
